{OVERALL_HEADER}
<SCRIPT LANGUAGE="JavaScript">
function formValidation(form)
{
	if(notEmpty(form.project_name,"{LANG_PROJNAME}"))
	{
		if(notEmpty(form.project_description,"{LANG_PROJDESC}"))
		{
			if(notEmpty(form.days,"{LANG_BIDTIME}"))
			{
				return true;
			}
		}
	}
	return false;
}
function notEmpty(elem,fname)
{
	var str = elem.value;
	if(str.length == 0)
	{
		alert("You must fill in the "+fname+" field.");
		return false;
	} 
	else 
	{
		return true;
	}
}
</script>
<table width="964px" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td width="5px">
		</td>
		<td height="20px" width="733" align="left">
			<span class="title1"></span>
		</td>
		<td width="211px" align="right" valign="top">
			<div id="mainnav1" class="clearfix">
      		<ul class="rmainlevel">
						<li class="tab-yellow">
							<a title="Home" href="search.php">
								<span>SEARCH</span>
							</a>
						</li>						
						IF("{LOGGED_IN}"=="0"){
						<li class="tab-green">
							<a title="Home" href="{SITE_URL}signup.php">
								<span>SIGN UP</span>
							</a>
						</li>
						{:IF}
						IF("{LOGGED_IN}"=="0"){
						<li>
							<a class="active" title="Home" href="{SITE_URL}login.php">
								<span>LOGIN</span>
							</a>
						</li>
						{:IF}
						IF("{LOGGED_IN}"=="1"){
						<li>
							<a class="active" title="Home" href="{SITE_URL}manage.php">
								<span>ACCOUNT</span>
							</a>
						</li>
						<li class="tab-green">
							<a class="" title="Home" href="{SITE_URL}logout.php">
								<span>LOGOUT</span>
							</a>
						</li>
						{:IF}
					</ul>
		      <div style="clear:both;"></div>
      		</div>
		</td>
	</tr>
</table>		

<div id="project">
	<form onSubmit="return formValidation(this)" action="" method="post" enctype="multipart/form-data" name="form">
      {LOOP: ERRORS}
		<span class="error">- {ERRORS.message}</span><br>
      {/LOOP: ERRORS}
		<br />
		<table border="0" cellspacing="0" cellpadding="4" class="normal">
			<tr>
				<td><strong>{LANG_USERNAME}</strong></td>
			</tr>
			<tr>
				<td>{USERNAME}</td>
			</tr>
			<tr>
				<td><strong>{LANG_PROJNAME}(*)</strong></td>
			</tr>
			<tr>
				<td><input name="project_name" type="text" id="project_name" size="40" maxlength="200" value="{PROJECTTITLE}"></td>
			</tr>
			<tr>
				<td><strong>{LANG_PROJTYPE}</strong></td>
			</tr>
			<tr>
				<td>
					<table border="0" cellpadding="0" cellspacing="0">
					{LOOP: JOBTYPES}
					IF("{JOBTYPES.ctype}"=="0"){
						<tr>
							<td><input name="jobtype[{JOBTYPES.id}]" type="checkbox" value="{JOBTYPES.id}"></td>
							<td>{JOBTYPES.title}</td>
						</tr>
					{:IF}
					IF("{JOBTYPES.ctype}"=="2"){
						<tr>
							<td><input name="jobtype[{JOBTYPES.id}]" type="checkbox" value="{JOBTYPES.id}"></td>
							<td> {JOBTYPES.title}</td>
						</tr>
					{:IF}
					IF("{JOBTYPES.ctype}"=="1"){
						<tr>
							<td colspan="2"><strong>{JOBTYPES.title}</strong></td>
						</tr>
					{:IF}
					{/LOOP: JOBTYPES}
					</table>
				</td>
			</tr>
			<tr>
				<td><strong>{LANG_DATABASE}</strong></td>
			</tr>
			<tr>
				<td>
					<select name="dbtype" id="select3">
						{LOOP: DBS}
			            <option {DBS.selected} value={DBS.value}>{DBS.title}</option>
			            {/LOOP: DBS}			
					</select>
				</td>
			</tr>
			<tr>
				<td><strong>{LANG_OPSYS}</strong></td>
			</tr>
			<tr>
				<td>
					<select name="ostype" id="select4">
			            {LOOP: OSS}
			            <option {OSS.selected} value={OSS.value}>{OSS.title}</option>
			            {/LOOP: OSS}
			            
			        </select>
				</td>
			</tr>
	        {LOOP: CUSTOMFIELDS}
	        <tr>
				<td><strong>{CUSTOMFIELDS.title}</strong></td>
	        </tr>
			<tr>
				<td>
				IF("{CUSTOMFIELDS.type}"=="text"){
					<input name="custom[{CUSTOMFIELDS.id}]" type="text" id="custom[{CUSTOMFIELDS.id}]" size="30" maxlength="{CUSTOMFIELDS.maxlength}" value="{CUSTOMFIELDS.default}">
				{:IF}
				IF("{CUSTOMFIELDS.type}"=="select"){{CUSTOMFIELDS.selectbox}{:IF}
				</td>
			</tr>
			{/LOOP: CUSTOMFIELDS}
	        <tr>
	          <td><strong>{LANG_PROJDESC}(*)</strong></td>
	        </tr>
	        <tr>
				<td>
					<textarea name="project_description" cols="50" rows="9" id="textarea">{DESCRIPTION}</textarea>
				</td>
	        </tr>
	        <tr>
	          <td><strong>{LANG_ATTACHMENT}:</strong>
	            <input name="attachment" type="file" id="attachment2" size="40"> (Max. 500 KB)</td>
	        </tr>        
	        <tr>
	          <td><strong>{LANG_BUDGET}</strong></td>
	        </tr>
	        <tr>
	          <td>{LANG_MIN}: {CURRENCY_SIGN}
	              <select name="budget" id="budget" style="text-align:left;">
			            {LOOP: BUDGETS}
			            <option {BUDGETS.selected} value={BUDGETS.value}>{BUDGETS.title}</option>
			            {/LOOP: BUDGETS}			            
			        </select>
			      <!--  
	              <input name="budget_min" type="text" id="budget_min" size="8" value="{MINBUDGET}"></td>
	        </tr>
	        <tr>
	          <td>{LANG_MAX}: {CURRENCY_SIGN}
	              <input name="budget_max" type="text" id="budget_max" size="8" value="{MAXBUDGET}"></td>
	       		-->
	        </tr>
	        <tr>
	          <td>{LANG_WANTBID} <input name="days" type="text" id="days" size="5" maxlength="2" value="{BIDDINGTIME}"> {LANG_DAYS}</td>
	        </tr>
            <tr>
				<td><input name="featured" {FEATURED} type="checkbox" id="featured2" value="1"><b> {LANG_WANTPAY} {CURRENCY_SIGN}{FEATURED_PRICE} {LANG_WANTFEAT}</b></td>
			</tr>
	        <tr>
	          <td><input type="submit" name="Submit" value="{LANG_SUBPROJECT}" class="button"></td>
	        </tr>
      </table>
    </form>    <br>
</div>	
<div id="rightnav">
</div>
<div style="clear:both;"></div>
{OVERALL_FOOTER}